package com.scoremg.entity.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;



@Data
@AllArgsConstructor
@NoArgsConstructor
@Validated
public class AddUserInfoDto {

    /**
     * 用户id
     */
    private String userId;

    /**
     * 角色 0:学生 1：教师 2：管理员
     */
    @NotNull
    private Integer roleType;

    /**
     * 密码
     */
    @NotEmpty
    private String password;

    /**
     * 学工号
     */
    @NotEmpty
    private String stuJobNo;

    @NotEmpty
    private String name;

}
